package com.gxuwz.com_property.role.mapper;

import com.gxuwz.com_property.role.pojo.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    /**
     * 查找所有权限
     * */
    public List<Role> findAllRole();
    /**
     * 根据Id查看权限
     * */
    public Role findRoleById(Role role);

    /**
     * 根据Id修改权限
     * */
    public boolean updateRoleById(Role role);

    /**
     * 根据Id删除权限信息
     * */
    public boolean delectRoleById(int id);

    /**
     * 添加权限信息
     * */
    public boolean addRole(Role role);
}
